﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Com.Library.DB.Post
{
	public class PostModel
	{
		private PostModel()
		{
		}

		public static List<PostEntity> GetList(string SearchWord)
		{
			if (SearchWord.Length < 2)
				throw new Exception("2자 이상 입력하세요");

			PostGetListArguments args = new PostGetListArguments()
			{
				strSearchWord = SearchWord
			};

			PostGetList access = new PostGetList();
			access.SetArguments(args);

			List<PostEntity> retVal = access.Execute();

			return retVal;
		}
	}
}
